package net.bingosoft.common.data.idgenerator;

import net.bingosoft.common.data.BaseDao;

/**
 * 2008-3-27 下午12:33:55
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:通过数据库产生的GUID产生主键
 * ChangeLog:
 */
class GUIDGenerator implements IdGenerator {
	private BaseDao dao;
	GUIDGenerator(BaseDao dao){
		this.dao = dao;
	}

	/* (non-Javadoc)
	 * @see net.bingosoft.common.data.IdGenerator#generateId()
	 */
	public String generateId() {
		return dao.getGUID();
	}

}
